#coding:utf-8
'''
Created on 2016年8月1日

@author: daxia
'''
import requests
import os
import subprocess
import sys
import win32api
url = "http://192.168.1.42:8080/api/action?action=host_proxy_update"

def register_by_request_get(url):
    s = requests.Session()
    resp = s.get(url,params = {
    "code":"gd001",
    "addr": "192.168.1.1:1111",
    },
    
    timeout=20, verify=False)
    print resp.content
    s.close()
    


 
#subprocess.Popen("start %s" % ("threeproxy\\proxy.exe") ,shell=True)
win32api.ShellExecute(0, 'open', 'proxy.exe', '', '',1)  
print "aaaaaaaa"

sys.exit(0)

# Clean up the directory yourself
